﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ICDA.Web.Helper
{
    public class Email
    {
        /// <summary>
        /// Sends the notes mail.
        /// </summary>
        /// <param name="mailto">The mailto.</param>
        /// <param name="text">The text.</param>
        /// <param name="mailSubject">The mail subject.</param>
        public static void SendMail(string mailto, string text, string mailSubject)
        {
            System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
            message.To.Add(mailto);
            message.Subject = mailSubject;
            message.From = new System.Net.Mail.MailAddress("admin.apps@csc.com");
            //message.Bcc.Add("");
            message.Body = text;
            System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("amer-mta02.csc.com");
            smtp.Send(message);

        }
    }
}